package com.bgs.controller;

import com.bgs.entity.Evaluate;
import com.bgs.service.EvaluateService;
import com.bgs.tool.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("evaluate")
public class EvaluateController {
    @Autowired
    private EvaluateService evaluateService;
    //    添加用户评论
    @PostMapping("addevaluate")
    public R addevaluate(@RequestBody Evaluate evaluate){
        evaluateService.addevaluate(evaluate);
        return R.ok();
    }
}